//
//  BaseUIExt.h
//  BaiduTravel
//
//  Created by liangqiaozhong on 13-7-15.
//  Copyright (c) 2013年 Baidu.com. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface UIView(ColorExt)

-(void) setBackgroundColorWithImage:(UIImage *)image;

@end

@interface UIViewController(PresentViewController)

- (void) presentViewControllerWithCompatibility:(UIViewController *)viewControllerToPresent animated: (BOOL)flag completion:(void (^)(void))completion;

- (void) presentViewControllerWithCompatibility:(UIViewController *)viewControllerToPresent animated: (BOOL)flag;

- (void)dismissViewControllerAnimatedWithCompatibility:(BOOL)flag completion: (void (^)(void))completion;

- (void)dismissViewControllerAnimatedWithCompatibility:(BOOL)flag;

@end


